/**
 * Copyright (C) 2020 Baidu, Inc. All Rights Reserved.
 */
package com.baidu.mpks.backendweb.ktree.vo;

import java.util.Set;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

import lombok.Data;

/**
 * @author cuixuefei
 *
 */
@Data
public class TreeNodeVO {
    private Integer id;
    @NotBlank(message = "名称不能为空")
    @Pattern(regexp = "^[A-Za-z0-9\\u4e00-\\u9fa5\"'“”()（）_.-、]+$", message = "名称只支持中英文/数字/双引号/冒号/括号/下划线/短横线/点/顿号")
    private String name;
    private Integer parentId;
    private Integer sort;
    
    // 是否加密
    private int isEncryption;
    
    private Set<Integer> roleIds;
    
    private int isParent;

}
